package com.springcloudexercise.userservice.Listener;

import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class KafkaMsgListener {

    @KafkaListener(topics = {"logMsg"}, groupId = "test")
    public void annul1(ConsumerRecord<String, String> record) {
        System.out.println("groupId = test, message = " + record.value());
    }
}
